//
//  SISSFileUploadManager.h
//  SISSAPP
//
//  Created by 优房网 on 2017/5/31.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import <Foundation/Foundation.h>


#define kFileUploadManager [SISSFileUploadManager sharedManager]
@interface SISSFileUploadManager : NSObject

+ (instancetype)sharedManager;

// 上传单个文件,不带文字信息
- (void)uploadFileWithURLStr:(NSString *)URLStr serverName:(NSString *)serverName filePath:(NSString *)filePath;


// 上传多个文件,带文字信息
- (void)uploadFilesWithURLStr:(NSString *)URLStr serverName:(NSString *)serverName filePaths:(NSArray *)filePaths textDict:(NSDictionary *)textDict success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 上传多个文件,带文字信息

 @param URLStr urlStr
 @param serverNames serverNames数组
 @param filePathsArr filePaths数组
 @param textDict 文字
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)uploadFilesWithURLStr:(NSString *)URLStr serverNames:(NSArray<NSString *> *)serverNames filePathsArr:(NSArray<NSArray *> *)filePathsArr textDict:(NSDictionary *)textDict success:(void (^)(id))successBlock failed:(void (^)(NSError *))failedBlock;

@end
